package nl.jworks.epub.organizer.services;

import nl.jworks.epub.organizer.domain.Epub;
import nl.jworks.epub.organizer.repository.EpubRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EpubService {
    private final Logger log = LoggerFactory.getLogger(getClass());

    @Autowired
    private EpubRepository epubRepository;

    public void importBook(Object o) {
        log.info("Importing {}", o);
    }

    public void addEpub(Epub epub) {
        epubRepository.save(epub);
    }

    public String hello() {
        return "ok!";
    }
}
